using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace WorldEditor.SystemManager.Entities
{
    public partial class Entities : UserControl
    {
        public Entities()
        {
            InitializeComponent();

            //_CurrentPlayer = new Player(0, "Peter");
            //_CurrentPlayer.WorldCoordinate = new Microsoft.Xna.Framework.Point(0, 0);

            //LoadPlayer();
        }

        //Player _CurrentPlayer;

        private void LoadPlayer()
        {
            ////Load testing TileSets/Body Parts for Player
            //string CharPath = TileWorld.CurrentWorld.diCharacters.FullName;

            //_CurrentPlayer.Body = new Item(10, "Body", 1.0f, 1.0f, ItemType.Armor,
            //    new TileSet(0, Texture2D.FromFile(xnaView.GraphicsDevice, CharPath + @"\Body\defaultbodycolor.png"),
            //    "", 24, 32, 0, 0));

            //_CurrentPlayer.Body.SetDrawColor(Color.Green);

            //_CurrentPlayer.Face = new Item(10, "Face", 1.0f, 1.0f, ItemType.Armor,
            //    new TileSet(0, Texture2D.FromFile(xnaView.GraphicsDevice, CharPath + @"\Face\face1.png"),
            //    "", 24, 32, 0, 0));

            //_CurrentPlayer.Hair = new Item(10, "Hair", 1.0f, 1.0f, ItemType.Armor,
            //    new TileSet(0, Texture2D.FromFile(xnaView.GraphicsDevice, CharPath + @"\Hair\whitehair5.png"),
            //    "", 24, 32, 0, 0));

            //_CurrentPlayer.Hair.SetDrawColor(Color.Blue);

            //_CurrentPlayer.TempWorn = new Item(10, "Clothes", 1.0f, 1.0f, ItemType.Armor,
            //    new TileSet(0, Texture2D.FromFile(xnaView.GraphicsDevice, CharPath + @"\Back\whitecloak.png"),
            //    "", 24, 32, 0, 0));

            //_CurrentPlayer.TempWorn.SetDrawColor(Color.DarkRed);

            //_CurrentPlayer.AddItems();
        }
    }
}
